 <?php include('session.php'); ?> 
<!DOCTYPE html>
<html>
  <head>
    <title>Perfiles - Buscar Acad&eacute;mico</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
    <script type="text/javascript" src="js/bootstrap-tab.js"></script>
    <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>
  </head>
  <body>
        <script src="http://code.jquery.com/jquery.js"></script>
        <script src="js/bootstrap.min.js"></script>
        
       <nav class="navbar-wrapper navbar-default navbar-fixed-top"  role="navigation">
 
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse"
            data-target=".navbar-ex1-collapse">
      <span class="sr-only">GesAc Sys</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand">GesAc</a>
  </div>
 
  <!-- Agrupar los enlaces de navegación, los formularios y cualquier
       otro elemento que se pueda ocultar al minimizar la barra -->
  <div class="collapse navbar-collapse navbar-ex1-collapse">
    <ul class="nav navbar-nav">
      <li><a href="ViewHome.php"><span class="glyphicon glyphicon-home"></span> Inicio</a></li>
      <li><a href="View_Carrera_Buscar.php"><span class="glyphicon glyphicon-lock"></span> Carreras</a></li>
      <li class="active"><a href="View_PA.php"><span class="glyphicon glyphicon-list-alt"></span> Acad&eacute;micos</a></li>
    <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-calendar"> </span> Horarios</a>
         <ul class="dropdown-menu">
      <li><a href="CA_Buscar.php">Horarios Creados</a></li>
          <li><a href="Horarios3.php">Crear Horario.</a></li>
         </ul>
      </li>
    <li><a href="PerfilPresupuestario.php"><span class="glyphicon glyphicon-dollar"></span> Presupuesto</a></li>
      <li><a href="ViewReportes.php"><span class="glyphicon glyphicon-comment"></span> Reportes</a></li>
    <li><a href="ViewUsuarios.php"><span class="glyphicon glyphicon-user"></span> Usuarios</a></li>
    </ul>
 
     <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-asterisk"></span>
          <ul class="dropdown-menu">
      <li><a href="FAQ.php">Preguntas Frecuentes</a></li>
            <li><a href="cerrarSesion.php">Salir</a></li>
          </ul>
        </li>
     </ul>
  </div>
</nav>
          <!--
          Se usa la de abajo para meter todo los forms.
          !-->
          <div class="container-fluid">
            <div class="jumbotron">
              <br>
                        
    <?php 
       echo '<table border=1 class="table table-striped">'; 
              echo "<tr>"; 
              echo "<td><b>Acad&eacute;mico</b></td>";  
              echo "<td><b>Acci&oacute;n</b></td>";
              echo "</tr>";   

          include('../Model/ModelConexion.php');        
          $conexion = new Conexion();
          $consulta_profes_con_curriculos = $conexion->Consulta("
            SELECT papersonal.cedula as c,
            papersonal.nombre as n,
            papersonal.apellido1 as ap1,
            papersonal.apellido2 as ap2
            FROM paprofesionales,papersonal
            WHERE papersonal.cedula=paprofesionales.cedula
            ");

             while($Academico_curriculo = $conexion->Arreglo($consulta_profes_con_curriculos)) 
             {
               $NombreCompleto= $Academico_curriculo['c']." - ".$Academico_curriculo['n']." ".$Academico_curriculo['ap1']." ".$Academico_curriculo['ap2'];
                  echo "<tr>"; 
                  echo "<td valign='top'>" .($NombreCompleto ) . "</td>";  
                   echo "<td valign='top'><a href=Filtro_CV.php?cedula=$Academico_curriculo[c]>
                   Ver curriculo </a>
                  "; 
                  
              
              
            
              ?>
              
              <?php
             }
             
         ?>  
 
            </div>
          </div> 

      
  <!-- -->
  
  </body>
</html>